package com.example.spring0909.test;

import com.example.spring0909.impl.TextDaooImpl;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class TextDaoo {
    public static void main(String[] args){
        TextDaooImpl textDaoo = new TextDaooImpl();
        textDaoo.testOne();

        BeanFactory factory = new ClassPathXmlApplicationContext("META-INF/springConfig.xml");
        TextDaooImpl textDaoo1 = factory.getBean("testDaoo", TextDaooImpl.class);
        textDaoo1.testOne();
    }
}
